Skip to contentSkip to conversation

amdgpu fails to resume on 5.2 kernel [regression]

Bug 111922 [email protected] 1 participant 11 messages Oct 8, 2019 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=111922

Bug ID: 111922
Summary: amdgpu fails to resume on 5.2 kernel [regression]
Product: DRI
Version: DRI git
Hardware: Other
OS: All
Status: NEW
Severity: not set
Priority: not set
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

The upgrade to the 5.2 series of the kernel has unfortunately made my system unusable. After resuming the system from suspend the display goes green and is unresponsive locally. It is still up though so I was able to reach it via the network and get some logs out of it.

Tested bad kernels:

5.2.15-200.fc30
5.2.9-200.fc30

Known good kernels:

5.0.17-300.fc30
5.1.18-300.fc30
5.1.20-300.fc30

Found some other bug reports both here and with Red Hat with similar warnings in dmesg, but they seem to be failing right away and not after a suspend. So I'm not sure if it's the same issue.

But report at Red Hat:

https://bugzilla.redhat.com/show_bug.cgi?id=1754252

(includes dmesg)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #2 from Pierre Ossman <[email protected]> --- Not easily unfortunately as I've only been using Fedora kernels, so I don't have a build environment set up.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #3 from Pierre Ossman <[email protected]> --- Issue still remains with 5.4.0-rc6 unfortunately. :/

Do you have any patches or commits I could try reverting? It's much easier building a test RPM here.

It should be something during the 5.2.0 merge window. Anything likely from that set?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #5 from Pierre Ossman <[email protected]> --- That's a shame.

I did find bug 111811, which looks very similar. Through that I found this patch:

https://www.mail-archive.com/[email protected]/msg40304.html

Unfortunately it does not solve the issue here. :/

Have you checked if you can reproduce this in a 2200G in your end? Or other Raven Ridge APUs?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #6 from Pierre Ossman <[email protected]> --- Hmmm... I did get this from that patch though:

Quoted 7 lines
[   98.391016] amdgpu 0000:38:00.0: GPU mode1 reset
[   98.391072] [drm] psp mode 1 reset not supported now! 
[   98.391074] amdgpu 0000:38:00.0: GPU mode1 reset failed
[   98.391151] amdgpu 0000:38:00.0: GPU mode1 reset
[   98.391198] [drm] psp mode 1 reset not supported now! 
[   98.391199] amdgpu 0000:38:00.0: GPU mode1 reset failed
[   98.391358] [drm:amdgpu_device_suspend [amdgpu]] *ERROR* amdgpu asic reset failed

Not sure if it helps.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #7 from Pierre Ossman <[email protected]> --- I finally got a build environment set up, and the winner is:

Quoted 10 lines

df8368be1382b442384507a5147c89978cd60702 is the first bad commit commit df8368be1382b442384507a5147c89978cd60702

Author: Nicholas Kazlauskas <[email protected]>
Date:   Wed Feb 27 12:56:36 2019 -0500

drm/amdgpu: Bump amdgpu version for per-flip plane tiling updates

To help xf86-video-amdgpu and mesa know DC supports updating the tiling attributes for a framebuffer per-flip.

Quoted 7 lines

:040000 040000 06a7975c484e74ebdaa4ccf9ee1dc5dac7a0abc9 ab68acde511d49b3f96818066bba35f255ce1656 M drivers

Which seems extremely odd given the contents of that commit. But I guess it makes userspace change behaviour in a way that provokes the bug?

I don't think bisect will get me further. Help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #8 from Alex Deucher <[email protected]> --- (In reply to Pierre Ossman from comment #7)

Quoted 18 lines

I finally got a build environment set up, and the winner is:

Quoted 16 lines

df8368be1382b442384507a5147c89978cd60702 is the first bad commit commit df8368be1382b442384507a5147c89978cd60702

Author: Nicholas Kazlauskas <[email protected]>
Date:   Wed Feb 27 12:56:36 2019 -0500

drm/amdgpu: Bump amdgpu version for per-flip plane tiling updates

To help xf86-video-amdgpu and mesa know DC supports updating the tiling attributes for a framebuffer per-flip.

Quoted 6 lines
Quoted 1 line

:040000 040000 06a7975c484e74ebdaa4ccf9ee1dc5dac7a0abc9 ab68acde511d49b3f96818066bba35f255ce1656 M drivers

Which seems extremely odd given the contents of that commit. But I guess it makes userspace change behaviour in a way that provokes the bug?

I don't think bisect will get me further. Help?

Userspace only enables per flip tiling updates if the version of the kernel driver is new enough to support that feature. Maybe this is related to the DCC changes in mesa.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

--- Comment #9 from Marek Olšák <[email protected]> ---
Userspace doesn't know when suspend/resume is happening, so it can't hang on suspend/resume. My guess is it's something in DAL.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=111922

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #10 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/931.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel